<?php

function SetSystemTimeByMenu($in_array)
{
	$command_string1 = "/bin/date -s ". 
			$in_array['month']. $in_array['day'].$in_array['hour']. $in_array['min'].
			$in_array['year'];

	$command_string = $command_string1. $command_string2;
	shell_exec ($command_string);
}

function SetSystemTimeByNet($in_array)
{
	$server = $in_array['TimeServer'];
	$command = "/usr/sbin/ntpdate -t 15 ". $server. " & ";
	$ret = shell_exec($command); // Should use system() to get last line.
	return $ret;
}

?>
